<!DOCTYuncPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
		<link rel="stylesheet" href="css/pagecart.css" />
		<script src="js/jquery-1.11.0.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div class="carHeader">
			<div class="carHeaderCon clearfix">
				<div class="logo fl">
					<a href="#" target="_blank"> <img src="img/logo.png" width="30" height="70">
					</a>
			</div>
				<div class="fr">
				<img id="cart_icon" src="img/c_05.jpg" width="350" height="70">
				</div>
			</div>
		</div>
		<div class="center">
  		<div class="centerBox">
	<!-- 初始化商品列表数据 -->
	
	
	
	<div class="cartNav clearfix">
		<div id="afterLoginUserName" style="float: left;"></div>
      <div class="fl navLogin padLeft18"> <a href="###" onclick="">退出</a>
	  </div>
    </div>
	<!-- 表头数据 -->
	<div class="cartBox" style=" display:block;">
		<div class="cartSlist">
 			<table class="carTable" cellspacing="0" cellpadding="0" border="0">
				<thead>
					<tr>
						<th width="75"><input name="choseAll" id="choseAll" onclick="" checked="" type="checkbox"><label for="choseAll">全选</label></th>
						<th colspan="2" width="355">商品名称</th>
						<th width="96">发货站</th>
						<th width="96">会员价</th>
						<th width="140">数量</th>
						<th width="110">金额小计</th>
						<th width="110">操作</th>
					</tr>
				</thead>
				<tbody></tbody>
			</table>
		</div>	
		
     
		<!-- 引入商品结算页模板 -->
        <div class="cartPrice">
		<div class="cartAno">
			<div class="ano01 fl">
				<input name="choseAll" id="choseAll" onclick="" checked="" type="checkbox"><label for="choseAll">全选</label>
			</div>
			
				<div class="ano02 fl delSp"><a href="###" onclick="">删除选中商品</a></div>
			
		</div>
		<p>商品数量总计：件</p>
        <p>包装数量总计：0件</p>
		<p>返利库币：0库币</p>
		<p class="totalPriceBottom">商品金额总计（不含税金和运费）：<span class="rmb"></span><strong>15,371,765.00</strong></p>
		<p class="clearfix">
			<a href="http://www.secoo.com" class="fl a01 marTop12" target="_blank">继续购物</a>
			<a href="###" onclick="" class="fr a02" "="">立即结算</a>
		</p>
	</div>
	
	</div>
	</div>
  		

  	</div>
		<div class="footer">
	<div class="footerListTop clearfix">
		<div class="listTopCon">
			<div class="listTop01 fl">
				<div class="topIcon">
					<ul class="clearfix">
						<li><a href="#" ></a>
							<div class="topIconBg">
								<p class="i01 pngfix">正品保障</p>
								<p class="i01s pngfix"></p>
							</div>
							<div class="text">正品保障</div></li>
						<li class="hr"></li>
						<li><a href="#"></a>
							<div class="topIconBg">
								<p class="i02 pngfix">七天退修</p>
								<p class="i02s pngfix"></p>
							</div>
							<div class="text">七天退修</div></li>
						<li class="hr"></li>
						<li><a href="#"></a>
							<div class="topIconBg">
								<p class="i03 pngfix">维修保养</p>
								<p class="i03s pngfix"></p>
							</div>
							<div class="text">维修保养</div></li>
						<li class="hr"></li>
						<li><a href="#" ></a>
							<div class="topIconBg">
								<p class="i04 pngfix">权威鉴定</p>
								<p class="i04s pngfix"></p>
							</div>
							<div class="text">权威鉴定</div></li>
						<li class="hr"></li>
						<li><a href="#" ></a>
							<div class="topIconBg">
								<p class="i05 pngfix">管家服务</p>
								<p class="i05s pngfix"></p>
							</div>
							<div class="text">管家服务</div></li>
					</ul>
				</div>
			</div>
			<div class="listTop02 fl">
				<ul class="clearfix">
					<li><a class="toptext">关注寺库微信</a> <span class="weixinPic"><img src="img/weixin.jpg" width="86" height="86"></span> <a class="bottomtext">扫一扫有惊喜</a></li>
					<li><a class="toptext">下载寺库APP</a> <span class="weixinPic"><img src="img/app.jpg" width="86" height="86"></span> <a class="bottomtext">扫一扫有惊喜</a></li>

				</ul>
			</div>
			<div class="listTop03 fl">
				<p style="height:125px; margin:15px auto 0;">
					<a rel="nofollow" href="#">加入寺库</a>
					<a rel="nofollow" href="#">关于寺库</a>
					<a rel="nofollow" href="#">联系我们</a> 
					<a rel="nofollow" href="#">支付方式</a>
					<a rel="nofollow" href="#">帮助中心</a> 
					<a rel="nofollow" href="#">售后服务</a> 
					<a rel="nofollow" href="#">免责声明</a>
					<a rel="nofollow" href="#">礼品采购</a>
					<a rel="nofollow" href="#">寺库微博</a> 
					<a rel="nofollow" href="#">友情链接</a>
				</p>
			</div>
		</div>
	</div>

	<div class="footerListBottom">
		<div class="footerListBottom01">
			<div class="footerListBottom01">
				京ICP备09084709号-3 京公网安备110105004373号 
				<a href="#"><img src="http://pic.secoo.com/imagesNew/globalPic/foot_pic01.png" width="85" height="31"></a> 
				<a href="#"><img src="http://pic.secoo.com/imagesNew/globalPic/foot_pic02.png" width="85" height="31"></a> 
				<a href="#"><img src="http://pic.secoo.com/imagesNew/globalPic/gongshangju.png" width="27" height="31"></a>
			</div>
		</div>
	</div>
</div>
	</body>
</html>

<script src="js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>

<script src="js/Cookie.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	var str=window.location.search.split("=")[0]
	var uname=window.location.search.split("=")[1]
	
	if (uname&&str=="?uname") {
        var username=uname.split("?")
		document.getElementById('afterLoginUserName').innerText=uname;
	}
	var objStr=[];
	var objList=[];
	for(var i=0;i<20;i++){
	 objStr[i]=getCookieValueByKey(username+"tmp"+i)
	 if (objStr[i]) {
	 	var obj=JSON.parse(objStr[i])
	 	 objList.push(obj);
	 	
	 }
	 
	}
	console.log(objList)
	$(function(){
	 		$.each(objList,function(index,obj){  
	 		$("<tr id='tr"+obj.id+"' class='addChecked' name='cartRow'></tr>").appendTo($("tbody"))
	 		$("<td><input id='choseItem' type='checkbox' class='checkBox' checked='checked'/></td>").appendTo($("#tr"+obj.id+""))
	 		$("<td width='97' valign='top'><div class='cartPic fl padRight15'><a href='#'><img width='80' height='80' src='"+obj.src+"'/></a></div></td>").appendTo($("#tr"+obj.id+""))
	 		$("<td valign='top'><div class='cartNamres fl'><p class='namePro'><a href='#'>"+obj.describe+"</a></p></div></td>").appendTo($("#tr"+obj.id+""))
	 		$("<td>"+obj.address+"</td>").appendTo($("#tr"+obj.id+""))
	 		$("<td valign='top'><span class='rmb'>¥</span>"+obj.price+"</td>").appendTo($("#tr"+obj.id+""))
			$("<td valign='top'><div class='countNm clearfix'><div class='cPlus fl'>-</div><div class='cInput fl'><input class='Num' value='"+obj.num+"' type='text'/></div><div class='cMinus fl'>+</div></div></td>").appendTo($("#tr"+obj.id+""))
			$("<td valign='top'><strong class='colore93'><span class='rmb colore93'>"+obj.price*obj.num+"</span></strong></td>").appendTo($("#tr"+obj.id+""))
			$("<td valign='top'><a class='del' href='#'>删除</a></td>").appendTo($("#tr"+obj.id+""))
	 	})
	 	})
</script>